home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-11-26 | 1.6 KB | 85 lines | [TEXT/MACA] |
- (This short procedure can be run while your computer
- (is unattended and will count all of the RINGs that
- (are echoed to the screen display. The procedure
- (will recycle after 5 seconds of no RINGs. The
- (info is automatically written to an existing file called
- (CALLS on the Disk COM. Of course this can be
- (changed to fit your needs
-
- (To use this procedure, your modem must be set so
- (that it echos a RING to your screen each time your
- (computer line receives a ring
-
- (I use the buffer at the bottom of the screen
- (available in RR versions 10.2+. Since this buffer
- (causes the top 3 lines of the screen display to
- (be lost, the procedure turns off the buffer.
-
- (If you don’t use this type buffer (at the bottom), the first three
- (lines of the procedure can be deleted.
-
- COPYINTO X$, BUFFER OFF?
- QUERY4
- IF NO BBAR
-
- (Start procedure
- CLEAR
- TYPE No incoming calls detected^M
- :START
- PROMPT RING
- LET EQUAL R%,1
-
- (Count rings and set default timeout to 5 seconds
- :RING
- PANICAFTER 5
- ONPANIC JUMPTO TIME
- PROMPT RING
- ADD R%,1
- JUMPTO RING
-
- (Get time and date in correct formats)
- :TIME
- GETGLOBAL O%,5
- GETGLOBAL D%,6
- GETGLOBAL H%,8
- GETGLOBAL M%,9
- TEST H% > 12
- IF YES SUBTRACT H%,12
- TEST M% < 10
- IF YES COPYINTO T$,0
- NUMTOSTRING M%,M$
- IF YES CONCAT T$,M$
- IF YES COPYINTO M$,T$
- NUMTOSTRING H%,H$
- NUMTOSTRING R%,R$
- NUMTOSTRING O%,O$
- NUMTOSTRING D%,D$
-
- (Type screen display)
- CLEAR
- TYPE O$
- TYPE /
- TYPE D$
- TYPE --
- TYPE H$
- TYPE :
- TYPE M$
- TYPE You had
- TYPE R$
- TYPE Rings
- TYPE ^M
-
- (Send information to disk
- USEROPENA 1,COM:CALLS
- GETLINE G%,W$
- PAUSE 120
- CLEAR
- TYPE Incoming Call(s) detected^M
- USERWRITE 1,W$
- USERWRCR 1
- USERCLOSE 1
-
- (Recycle)
- JUMPTO START
-